package com.copyctrl.campus.portal.service.Impl;

import com.copyctrl.campus.portal.service.AnnounceService;
import com.copyctrl.mapper.CampAnnouncementMapper;
import com.copyctrl.model.CampAnnouncement;
import com.copyctrl.model.CampAnnouncementExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:JH
 * @version:1.0
 */
@Service
public class AnnounceServiceImpl implements AnnounceService {
    @Autowired
    CampAnnouncementMapper mapper;

    @Override
    public List<CampAnnouncement> getAnnouncements() {
        CampAnnouncementExample example=new CampAnnouncementExample();
        example.createCriteria().andIdIsNotNull();
        return mapper.selectByExample(example);
    }
}
